/**
 * @param {string} s
 * @return {string}
 * @description 调用库函数
 */

var replaceSpace = function (s) {
    return s.replaceAll(" ", "%20")
};
console.log(replaceSpace("We are happy."))